package com.music.controller;

import com.music.common.BaseResult;
import com.music.service.CmMusicianService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.xml.crypto.Data;

/**
 * 2 * @Author: 刘佳乐 :面向百度编程
 * 3 * @Date: 2020/12/13 15:51
 * 4
 */
@RestController
@RequestMapping("musician")
@Api(description = "音乐人相关接口")
//@CrossOrigin
public class CmMusicianController {

    @Autowired
    private CmMusicianService cmMusicianService;

    @RequestMapping(value = "findAll",method = RequestMethod.GET)
    public BaseResult findAll(){
        return cmMusicianService.findAll();
    }
}
